Christian Persch [Tue, 27 Apr 2010 11:31:23 +0000 (13:31 +0200)]
Use G_DEFINE_BOXED_TYPE
Bug #627214.
Javier Jardón [Wed, 18 Aug 2010 03:29:17 +0000 (05:29 +0200)]
docs: gtk_window_group_get_current_device_grab() was added in 3.0
Fran Diéguez [Tue, 17 Aug 2010 16:35:35 +0000 (18:35 +0200)]
Updated Galician translations
Tomeu Vizoso [Tue, 17 Aug 2010 15:57:58 +0000 (17:57 +0200)]
The 'len' argument of gtk_text_buffer_insert and gtk_text_buffer_insert_at_cursor isn't really the length of the 'text' argument
Tomeu Vizoso [Tue, 17 Aug 2010 15:42:50 +0000 (17:42 +0200)]
gtk_tree_model_iter_next's iter is (in), not (inout)
Matthias Clasen [Tue, 17 Aug 2010 15:41:01 +0000 (11:41 -0400)]
Bump version to 2.90.7
Jorge González [Tue, 17 Aug 2010 15:39:26 +0000 (17:39 +0200)]
Updated Spanish translation
Carlos Garnacho [Tue, 17 Aug 2010 13:43:08 +0000 (15:43 +0200)]
GtkButton: Also handle activate from mouse events.
Carlos Garnacho [Tue, 17 Aug 2010 13:39:03 +0000 (15:39 +0200)]
GdkWindow: Check device cursor first in update_cursor().
Matthias Clasen [Tue, 17 Aug 2010 12:56:07 +0000 (08:56 -0400)]
Remove no-longer-existing file from POTFILES.in
Matthias Clasen [Tue, 17 Aug 2010 12:56:07 +0000 (08:56 -0400)]
Remove no-longer-existing file from POTFILES.in
Matthias Clasen [Tue, 17 Aug 2010 04:04:10 +0000 (00:04 -0400)]
Remove a dangling reference
Matthias Clasen [Tue, 17 Aug 2010 03:52:03 +0000 (23:52 -0400)]
Fix some documentation issues
Matthias Clasen [Tue, 17 Aug 2010 03:28:35 +0000 (23:28 -0400)]
NEWS for 2.90.6
Matthias Clasen [Fri, 13 Aug 2010 04:54:31 +0000 (00:54 -0400)]
Drop internal function from header
Make _gtk_button_box_child_requisition static.
Matthias Clasen [Fri, 13 Aug 2010 04:53:49 +0000 (00:53 -0400)]
Drop some unnecessary variables
Benjamin Otte [Sun, 15 Aug 2010 22:08:58 +0000 (00:08 +0200)]
gdk: Use gdk_window_get_background_pixmap() when setting up paint
Benjamin Otte [Sun, 15 Aug 2010 21:50:02 +0000 (23:50 +0200)]
API: Add gdk_window_get_background_pattern()
This is the suggested way for GTK3 to store a Window's background so it
makes sense to use the same function today already.
Benjamin Otte [Sun, 15 Aug 2010 20:50:22 +0000 (22:50 +0200)]
textview: Fix rendering of embedded images
Fran Diéguez [Mon, 16 Aug 2010 08:26:42 +0000 (10:26 +0200)]
Updated Galician translations
Jorge González [Sun, 15 Aug 2010 19:44:22 +0000 (21:44 +0200)]
Updated Spanish translation
Jorge González [Sun, 15 Aug 2010 19:01:19 +0000 (21:01 +0200)]
Updated Spanish translation
Jorge González [Sun, 15 Aug 2010 19:01:12 +0000 (21:01 +0200)]
Updated Spanish translation
Kristian Rietveld [Sun, 15 Aug 2010 11:30:55 +0000 (13:30 +0200)]
quartz: gdk_window_get_frame_extents() needs to get effective toplevel
Benjamin Otte [Sun, 15 Aug 2010 01:51:39 +0000 (03:51 +0200)]
tests: unbreak testwindows test
Delete code that was broken and also used the APIs I just removed.
Benjamin Otte [Sun, 15 Aug 2010 01:31:37 +0000 (03:31 +0200)]
Remove window background getters again
They were added as accessors for 2.22 even though querying the
background wasn't possible previously. As GTK 3.0 will change background
handling, it doesn't make sense at all to expose these getters.
Javier Jardón [Sat, 14 Aug 2010 00:17:59 +0000 (02:17 +0200)]
Use accessor functions to access GtkToolbar
Javier Jardón [Sat, 14 Aug 2010 00:00:14 +0000 (02:00 +0200)]
GtkToolbar: move public members to private structure
Benjamin Otte [Fri, 13 Aug 2010 23:46:04 +0000 (01:46 +0200)]
gdk: When using OPERATOR_SOURCE, use clip + paint instead of fill
SOURCE is unbounded, so we clear unwanted areas.
Benjamin Otte [Fri, 13 Aug 2010 18:46:12 +0000 (20:46 +0200)]
gdk: Do final copy with OPERATOR_SOURCE in end_implicit_paint
For windows with alpha channel, the previous contents would otherwise
not be erased. Visible for example in the status icon code.
Thanks to Thomas Wood for noticing.
Matthias Clasen [Fri, 13 Aug 2010 03:22:07 +0000 (23:22 -0400)]
Remove some leftovers of deprecated functionality
There were some vestiges of the gtk_{h,v}button_box_set_default_layout()
functionality left. These are gone now. I have also removed
the GTK_BUTTONBOX_DEFAULT value in GtkButtonBoxStyle, but the other
values have been kept at their numeric values, to avoid more serious
ABI change.
Javier Jardón [Fri, 13 Aug 2010 00:49:27 +0000 (02:49 +0200)]
gtk_range_set_min_slider_size() should receive an gint, not a gboolean
Benjamin Otte [Thu, 12 Aug 2010 21:38:17 +0000 (23:38 +0200)]
gtk-demo: update drawingarea example
Use gdk_window_create_similar_surface() instead of gdk_pixmap_new()
Benjamin Otte [Thu, 12 Aug 2010 21:43:11 +0000 (23:43 +0200)]
API: Add gdk_window_create_similar_surface()
Javier Jardón [Thu, 12 Aug 2010 16:33:28 +0000 (18:33 +0200)]
GtkTextTagTable: move public members to private structure
Javier Jardón [Thu, 12 Aug 2010 15:59:32 +0000 (17:59 +0200)]
Use accessor funcions to access GtkCalendar
Javier Jardón [Thu, 12 Aug 2010 15:14:51 +0000 (17:14 +0200)]
GtkCalendar: move public members to private structure
Christian Persch [Thu, 12 Aug 2010 14:18:47 +0000 (16:18 +0200)]
Revert "Added UG translation" AGAIN
This reverts commit
ac94b406a1a1965a5788e84d119e48f07701b899.
Klemen Košir [Thu, 12 Aug 2010 12:12:17 +0000 (14:12 +0200)]
Updated Slovenian translation
Claudio Saavedra [Thu, 12 Aug 2010 10:15:20 +0000 (13:15 +0300)]
Improve the looks of the license text in GtkAboutDialog
It is not safe to assume that copyright text in applications is
one liner, therefore it's better to split it from the program name.
Also, the license text should be in a paragraph of its own, so
add an extra '\n' above it.
https://bugzilla.gnome.org/show_bug.cgi?id=626514
Sven Herzberg [Thu, 12 Aug 2010 09:20:41 +0000 (11:20 +0200)]
avoid redundant recursion for executing tests
* Makefile.decl: make sure that check-local does not depend on a
recursive target for the tests. This way check can recurse and call
check-local in each folder which then invokes test-cwd. This will
make sure that a toplevel check-local doesn't recurse into subfolders
as well. The was resulting in test being run twice (for "/tests"), tree
times (e.g. for "/gtk/tests") and potentially more often
Kristian Rietveld [Thu, 12 Aug 2010 08:57:59 +0000 (10:57 +0200)]
quartz: make it compile
Benjamin Otte [Wed, 11 Aug 2010 19:42:23 +0000 (21:42 +0200)]
Add gtk_license_get_type() to gtk.symbols
Benjamin Otte [Wed, 11 Aug 2010 19:36:46 +0000 (21:36 +0200)]
gdk: Remove nonexistant symbols
These symbols have been deleted from the public API with the rendering
cleanup work.
Fran Diéguez [Wed, 11 Aug 2010 16:19:34 +0000 (18:19 +0200)]
Updated galician translations
Sahran [Wed, 11 Aug 2010 15:48:38 +0000 (17:48 +0200)]
Added UG translation
Yinghua Wang [Wed, 11 Aug 2010 14:42:48 +0000 (22:42 +0800)]
Update Simplified Chinese UI translation.
Yinghua Wang [Wed, 11 Aug 2010 14:37:13 +0000 (22:37 +0800)]
Update Simplified Chinese property nicks translation.
Benjamin Otte [Wed, 11 Aug 2010 03:12:49 +0000 (05:12 +0200)]
docs: Some style fixes to the migration guide
Most importantly, I decided to not capitalize "cairo".
Matthias Clasen [Wed, 11 Aug 2010 01:21:01 +0000 (21:21 -0400)]
Beef up the migration guide
This includes a first cut at documenting the rendering cleanup changes
and the region removal.
Benjamin Otte [Wed, 11 Aug 2010 00:30:29 +0000 (02:30 +0200)]
dnd: Remove default_icon_pixmap variable and friends
The functions to set them were gone already, this is just cleanup
Kristian Rietveld [Sun, 8 Aug 2010 16:22:51 +0000 (18:22 +0200)]
quartz: Misc. fixes for getting offscreen windows to work
Mainly fixes to properly differentiate between toplevel and offscreen
windows, since these sometimes need different treatment. Furthermore,
usage of gdk_window_get_effective_foo() instead of gdk_window_get_foo()
where applicable.
Kristian Rietveld [Sun, 8 Aug 2010 16:17:29 +0000 (18:17 +0200)]
Invalidate cairo surface if resizing is not supported for target
While X11 surfaces can be resized, this is not the case for Quartz
surfaces. Instead of resizing we will invalidate the surface instead.
By giving _gdk_windowing_set_cairo_surface_size() a boolean return
value, we can signal back whether or not resizing was possible. If not
possible, we invalidate the surface.
Kristian Rietveld [Sun, 8 Aug 2010 16:02:04 +0000 (18:02 +0200)]
quartz: Convert default background drawing to cairo
Includes some untested (read: uncompiled) simplifications from Benjamin
Otte.
Benjamin Otte [Sat, 7 Aug 2010 00:18:06 +0000 (02:18 +0200)]
style: Use _gtk_pango_fill_layout()
Benjamin Otte [Sat, 7 Aug 2010 00:14:10 +0000 (02:14 +0200)]
style: Apply same matrix conversion as gdk_draw_layout() did
This is only necessary for GtkLabel with an angle set as no other widget
rotates text.
Note that the label code does not need these adjustments as those paths
are only taken when the label is not rotated.
Benjamin Otte [Fri, 6 Aug 2010 21:27:09 +0000 (23:27 +0200)]
gdk: Remove data consructors for GdkPixmap
That is all of the gdk_pixmap/bitmap_create_from_* constructors.
Benjamin Otte [Fri, 6 Aug 2010 20:41:21 +0000 (22:41 +0200)]
x11: Create empty cursor without old functions
In particular, clear the bitmap manually instead of using
create_from_data.
Benjamin Otte [Fri, 6 Aug 2010 20:37:34 +0000 (22:37 +0200)]
testgtk: Use Cairo to load XBM image
This should really use GdkPixbuf, but apparently we can't load XBM
images. And I'm too lazy to convert it.
Benjamin Otte [Fri, 6 Aug 2010 20:28:09 +0000 (22:28 +0200)]
testgtk: Use Pixbufs in the shapes example
Benjamin Otte [Fri, 6 Aug 2010 20:12:24 +0000 (22:12 +0200)]
testgtk: Rename pixmap => pixbuf in various places
Now that we use Pixbufs for the tests instead of Pixmaps, we should name
the tests like that.
Benjamin Otte [Fri, 6 Aug 2010 20:09:08 +0000 (22:09 +0200)]
testgtk: Use pixbufs instead of pixmaps
This is for creating a GtkImage with an icon.
Benjamin Otte [Fri, 6 Aug 2010 19:54:16 +0000 (21:54 +0200)]
testgtk: Make image test not use Pixmaps, but Pixbufs
Benjamin Otte [Fri, 6 Aug 2010 18:37:48 +0000 (20:37 +0200)]
testgtk: Fix types and get rid of casting
Benjamin Otte [Fri, 6 Aug 2010 18:33:57 +0000 (20:33 +0200)]
testdnd: Convert to use pixbufs as icons
Using Pixmaps is outdated.
Benjamin Otte [Fri, 6 Aug 2010 18:11:45 +0000 (20:11 +0200)]
x11: Make fallback pixbuf-cursor code not use old constructors
These bitmap constructors are about to die. The replacement is painting
with Cairo image surfaces and that's what we do here.
Benjamin Otte [Fri, 6 Aug 2010 16:03:18 +0000 (18:03 +0200)]
colorsel: Create cursor image using Cairo
Benjamin Otte [Fri, 6 Aug 2010 14:02:24 +0000 (16:02 +0200)]
style: Don't use gdk_pixmap_create_from_xpm
Instead, do what that code did manually.
Kristian Høgsberg [Thu, 5 Aug 2010 14:10:45 +0000 (10:10 -0400)]
gdk: Drop Xrender configure.ac check
GTK+ no longer depends on the render extension!
Benjamin Otte [Fri, 6 Aug 2010 02:36:17 +0000 (04:36 +0200)]
x11: Remove display_x11->have_render
Also remove setters and getters for the variable and the GdkTristate
enum, as it's the only place where it was used.
Benjamin Otte [Fri, 6 Aug 2010 02:23:34 +0000 (04:23 +0200)]
gdk-xft: Don't call render about the subpixel order
Instead assume that the root window property is working properly. This
removes the last real Xrender call from GTK.
Kristian Høgsberg [Thu, 5 Aug 2010 14:10:45 +0000 (10:10 -0400)]
gdk: Remove picture pointer from X11 drawable
It's not used anymore
Benjamin Otte [Thu, 5 Aug 2010 00:26:59 +0000 (02:26 +0200)]
gdk: Don't infinite loop when flushing moves
Spotted by Kristian Rietvield. Fixes testoffscreen test.
Matthias Clasen [Wed, 4 Aug 2010 22:43:53 +0000 (18:43 -0400)]
generic damage generation for offscreen windows
Generating damage from gdk drawing api doesn't help for cairo rendering
...and the gdk drawing api is gone anyway. Bug 621571
Matthias Clasen [Wed, 4 Aug 2010 14:33:01 +0000 (10:33 -0400)]
Cleanup gdk_pixbuf_render_pixmap_and_mask_for_colormap()
Benjamin Otte [Sat, 31 Jul 2010 10:47:38 +0000 (12:47 +0200)]
API: remove gdk_colormap_query_color
Benjamin Otte [Sat, 31 Jul 2010 10:24:03 +0000 (12:24 +0200)]
style: Do not allocate colors anymore
Benjamin Otte [Sat, 31 Jul 2010 10:00:45 +0000 (12:00 +0200)]
gtkbuilder: Do not allocate colors when parsing GtkBuilder files
Benjamin Otte [Sat, 31 Jul 2010 09:27:34 +0000 (11:27 +0200)]
textview: remove GtkTextAttributes (un)realize code
It was unused (apart from a few assertion that indeed it was unused).
Benjamin Otte [Sat, 31 Jul 2010 09:20:46 +0000 (11:20 +0200)]
gdk: Don't require allocating window background colors anymore
X!! allocates the colors itself now.
Kristian Rietveld [Thu, 29 Jul 2010 12:20:32 +0000 (14:20 +0200)]
Fix compile warnings
Kristian Rietveld [Thu, 29 Jul 2010 12:15:41 +0000 (14:15 +0200)]
Add call to cairo_destroy() to gtk_text_layout_draw()
Kristian Rietveld [Tue, 27 Jul 2010 15:46:51 +0000 (17:46 +0200)]
Add missing calls to cairo_destroy()
Kristian Rietveld [Sat, 24 Jul 2010 08:52:37 +0000 (10:52 +0200)]
quartz: Make backend compile again
Kristian Rietveld [Sat, 24 Jul 2010 08:52:10 +0000 (10:52 +0200)]
quartz: Fix up _gdk_quartz_window_translate
Benjamin Otte [Thu, 22 Jul 2010 01:55:27 +0000 (03:55 +0200)]
API: remove GdkGC
XXX: Some traces in the win32 code are left. I suppose they'd best be
replaced using Cairo.
Benjamin Otte [Sat, 31 Jul 2010 12:01:49 +0000 (14:01 +0200)]
calendar: Remove unused GdkGC members
Benjamin Otte [Thu, 22 Jul 2010 01:25:11 +0000 (03:25 +0200)]
API: remove begin/end_direct_draw functions
They're not needed without GdkGCs.
FIXME: This breaks the win32 XP theme. Someone gotta fix it.
Benjamin Otte [Thu, 22 Jul 2010 00:55:26 +0000 (02:55 +0200)]
API: Remove gtk_gc_get() and gtk_gc_release()
With this change, GTK does not use GdkGC anymore.
Benjamin Otte [Thu, 22 Jul 2010 00:55:12 +0000 (02:55 +0200)]
API: Remove GC members from GtkStyle
Benjamin Otte [Thu, 22 Jul 2010 00:30:08 +0000 (02:30 +0200)]
textview: Replace GdkGC * argument with gpointer
The argument is unused.
That's also the reason why we can pass NULL instead of the real GC in
the caller.
Benjamin Otte [Thu, 22 Jul 2010 00:26:05 +0000 (02:26 +0200)]
gdk: Move scratch GC handling to X11
... and implement it directly instead of using GdkGC, as GdkGC is about
to be deleted, but we need this code.
Benjamin Otte [Thu, 22 Jul 2010 00:23:54 +0000 (02:23 +0200)]
x11: Remove unused code
These are function definitions and leftover variabl;es that weren't in
use for a while.
Benjamin Otte [Wed, 21 Jul 2010 23:56:00 +0000 (01:56 +0200)]
API: remove GdkPangoRenderer
Also removes the pango attributes for stipple, emboss and emboss color
Benjamin Otte [Wed, 21 Jul 2010 23:17:01 +0000 (01:17 +0200)]
textview: Make the PangoRenderer use Cairo exclusively
No more gdkpango usage, no more GdkGC required, yay!
Benjamin Otte [Wed, 21 Jul 2010 19:13:23 +0000 (21:13 +0200)]
gdk: remove get_composite_drawable vfunc
The vfunc is not used anymore.
Benjamin Otte [Wed, 21 Jul 2010 19:02:35 +0000 (21:02 +0200)]
API: remove gdk_draw_drawable()
Benjamin Otte [Wed, 21 Jul 2010 18:45:21 +0000 (20:45 +0200)]
quartz: Do repeated fill with Cairo
Some things are so easy with Cairo...
XXX: I did not compile this, this is just proof of concept.
Benjamin Otte [Wed, 21 Jul 2010 18:37:33 +0000 (20:37 +0200)]
gdk: Make window moves a custom vfunc
The window move code needs special attention for multiple reasons:
- invalid areas for expose events need to be modified
- self-copy is not supported by Cairo
- in X11, copying from an overlapped Window might cause unexposed areas
to be copied in, spo expose events for those need to be generated.
This was all special cased in various parts of the code. By making it an
explicit vfunc, we can work around it.
Benjamin Otte [Wed, 21 Jul 2010 12:54:44 +0000 (14:54 +0200)]
API: remove gdk_draw_layout_*()